.field_wrapper {
    padding: 2px;
}

.field_wrapper::after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.field_wrapper label {
    float: left;
    width: 10em;
    padding-right: 5px;
}

.field_wrapper div label {
    width: inherit;
    padding-right: inherit;
}

.textfield_wrapper label {
    width: 10em;
    text-align: left;
}

.field_wrapper input[type="text"],input[type="password"] {
    width: 20em;
    border: 1px solid #999;
    padding: 2px;
    background-color: #FEFEEE;
}

.field_wrapper select {
    width: 50%;
}

.field_wrapper textarea {
    width: 20em;
    border: 1px solid #999;
    padding: 2px;
    background-color: #FEFEEE;
}

fieldset label {
    float: left;
    width: 10em;
    padding-right: 5px;
}

fieldset .field_wrapper select {
    width: 20em;
}

.form_submit_buttons {
    margin-top: 10px;
    border-top: 1px;
}

.form_body {
    min-height: 400px;
}

.form_footer {
    margin: 10px 5px;
}

.form_footer * {
    float: right;
}

ul.errorlist {
	display: inline;
}

ul.errorlist li {
	display: inline;
    color: red;
}

fieldset {
    border: 1px solid #999;
    margin-top: 10px;
    padding-top: 10px;
    background: -webkit-gradient(
        linear,
        right bottom,
        left top,
        color-stop(0.75, rgb(255,255,255)),
        color-stop(0.25, rgb(250,250,250))
    );
    background: -moz-linear-gradient(
        center bottom,
        rgb(250,250,250) 25%,
        rgb(255,255,255) 75%
    );
}

legend {
    border-top-left-radius: 4px 4px;
    border-top-right-radius: 4px 4px;
    -webkit-border-radius-topleft: 4px 4px;
    -moz-border-radius-topleft: 4px 4px;
    -moz-border-radius-topright: 4px 4px;
    font-size: 1.0em;
    font-weight: bold;
    color: #666;
    padding: 5px;
    background-color: #FBFBFC;
    border-bottom: 1px solid #DDD;
    background: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0.50, rgb(245,245,245)),
        color-stop(0.35, rgb(240,240,240))
    );
    background: -moz-linear-gradient(
        center bottom,
        rgb(240,240,240) 35%,
        rgb(245,245,245) 50%
    );
    font-weight: bold;
}
